package com.ty.controller;

import com.ty.dto.order.OrderMaster;
import com.ty.dto.order.OrderMasterQuery;
import com.ty.dto.product.Product;
import com.ty.service.OrderService;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/order")
@Slf4j
public class OrderController {

    @Autowired
    OrderService orderService;
    @GetMapping
    public OrderMaster select(OrderMasterQuery query){
        log.debug("查询订单信息{}",query);
        return orderService.select(query);
    }
}
